package com.supertange.miniapp.wepet.modules.wepet.service.impl;

import com.supertange.miniapp.wepet.common.idworker.Sid;
import com.supertange.miniapp.wepet.modules.wepet.entity.BgmEntity;
import com.supertange.miniapp.wepet.modules.wepet.mapper.BgmMapper;
import com.supertange.miniapp.wepet.modules.wepet.service.BgmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("bgmService")
public class BgmServiceImpl implements BgmService {

	@Autowired
	private BgmMapper bgmMapper;
	
	@Autowired
	private Sid sid;
	
	@Transactional(propagation = Propagation.SUPPORTS)
	@Override
	public List<BgmEntity> queryBgmList() {
		return bgmMapper.selectList(null);
	}

	@Transactional(propagation = Propagation.SUPPORTS)
	@Override
	public BgmEntity queryBgmById(String bgmId) {
		return bgmMapper.selectById(bgmId);
	}

}
